<?php
/**
 * Created by PhpStorm.
 * User: renyi
 * Date: 2017/10/17
 * Time: 上午3:29
 */

namespace App\Misc;


class ArrayToolkit
{
    public static function get($array, $key, $default = "")
    {
        if (array_key_exists($key, $array))
        {
            return $array[$key];
        }

        return $default;
    }
}